package org.vic.strategy.demo02;

/**
 * Created by VIC.Huang on 2016/8/24.
 */
public class Context {
    Strategy strategy;
    // 设置策略接口，屏蔽具体实现策略
    public void setStrategy(Strategy strategy) {
        this.strategy = strategy;
    }

    public void method() {
        strategy.algorithm();
    }
}
